from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
url = "https://www.baidu.com"
service = Service(executable_path="chromedriver.exe")
driver = webdriver.Chrome(service=service)
driver.get(url)
driver.maximize_window()
sleep(5)
driver.quit()
